{% extends 'base.html' %}

{% block content %}

    <div class="container mt-3">
        <div class="row">
            <div class="col-6">
                <h class="h3">删除事项</h>
            </div>
            <div class="col-6">
                <form class="d-flex" method="post">
                    <input class="form-control me-2" type="int" name="gyid" placeholder="输入供应商ID">
                    <button class="btn btn-primary" type="submit" name="form_id" value="1">Search</button>
                </form>
            </div>

        </div>
        {% if customer %}
            <table class="table table-striped">
            <thead>
            <tr>
                <th>ID</th>
                <th>标题</th>
                <th>内容</th>
                <th>时间</th>
            </tr>
            </thead>
            <tbody>
              <tr>
                 {% if customer.statu %}
                    <td class="table-success">{{ customer.id }}</td>
                    <td class="table-success">{{ customer.title }}</td>
                {% else %}
                    <td class="table-danger">{{ customer.id }}</td>
                    <td class="table-danger">{{ customer.title }}</td>
                {% endif %}
                    <td class="">{{ customer.detail }}</td>
                    <td>{{ customer.time }}</td>
                </tr>
            </tbody>
        </table>
            <div class="row">

                <div class="col-6">
                    <form class="d-flex" method="post">
                        <input type="hidden" value="{{ customer.id }}" name="deleid">
                        <button class="btn btn-primary" type="submit" name="form_id" value="2">确定删除</button>
                    </form>
                </div>

            </div>
        {% endif %}

    </div>


{% endblock %}
